Skip to main content
Version: 4.x.x

FirestoreOnSnapshotExtra


import { FirestoreOnSnapshotExtra } from "@hyper-fetch/firebase"

Description

Defined in adapter/types/adapter.firestore.types.ts:42

Preview

type FirestoreOnSnapshotExtra = {
groupedResult: { added: DocumentSnapshot[]; modified: DocumentSnapshot[]; removed: DocumentSnapshot[] };
ref: DocumentReference | CollectionReference;
snapshot: DocumentSnapshot;
unsubscribe: FirestoreUnsubscribe;
}

Structure

{
groupedResult: {
added: DocumentSnapshot[];
modified: DocumentSnapshot[];
removed: DocumentSnapshot[];
};
ref: DocumentReference | CollectionReference;
snapshot: DocumentSnapshot;
unsubscribe: FirestoreUnsubscribe;
}